﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ShowFPS : MonoBehaviour {
    GUIStyle m_Style;

    private void Start()
    {
        m_Style = new GUIStyle();
        m_Style.normal.textColor = Color.green;
        m_Style.fontSize = 40;
    }

    private void OnGUI()
    {
        GUI.Label(new Rect(10, 120, 1000, 40), "平均帧率:" + FPSCalculator.Instance.MediumFps, m_Style);
    }
}
